﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LittleSolution
{
    public enum eViews
    {
        DEFINE_OBJECT_TEMP,
        ADD_NEW_OBJ,
        DEFINE_LITTLE_TEMP,
        SELECT_LITTLE
    };
    public static class ViewsFactory
    {
        public static Control GetView(eViews viewType)
        {
            switch(viewType)
            {
                case eViews.DEFINE_OBJECT_TEMP:
                    return new ucDefineObjectTemp();
                case eViews.ADD_NEW_OBJ:
                    return new usRegisterObject();
                case eViews.DEFINE_LITTLE_TEMP:
                    return new ucDefineLittle();
                default: return null;
            }            
        }
    }
}
